package com.wx.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wx.dao.WxMulReplyMapper;
import com.wx.entity.WxMulReply;
import com.wx.entity.WxMulReplyExample;
import com.wx.entity.WxPicMulReply;
import com.wx.service.WxMulReplyService;

@Service("wxMulReplyService")
public class WxMulReplyServiceImpl implements WxMulReplyService{

	private WxMulReplyMapper wxMulReplyMapper;
	
	@Override
	public int insert(WxMulReply WxMulReply) {
		return this.wxMulReplyMapper.insert(WxMulReply);
	}

	@Override
	public List<WxMulReply> selectByExample(WxMulReplyExample example) {
		return this.wxMulReplyMapper.selectByExample(example);
	}

	@Override
	public WxMulReply selectByPrimaryKey(Integer id) {
		return this.wxMulReplyMapper.selectByPrimaryKey(id);
	}

	@Override
	public int countByExample(WxMulReplyExample example) {
		return this.wxMulReplyMapper.countByExample(example);
	}

	@Override
	public int updateByExample(WxMulReply record, WxMulReplyExample example) {
		return this.wxMulReplyMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKey(WxMulReply record) {
		return this.wxMulReplyMapper.updateByPrimaryKey(record);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return this.wxMulReplyMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int deleteByPrimaryKey(WxMulReplyExample example) {
		return this.wxMulReplyMapper.deleteByExample(example);
	}

	public WxMulReplyMapper getWxMulReplyMapper() {
		return wxMulReplyMapper;
	}

	@Resource
	public void setWxMulReplyMapper(WxMulReplyMapper wxMulReplyMapper) {
		this.wxMulReplyMapper = wxMulReplyMapper;
	}

	@Override
	public List<WxPicMulReply> selectMulModel(Map<String, String> map) {
		return this.wxMulReplyMapper.selectPicMul(map);
	}
}
